﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlindData
{
	public static class NegativeGenerator
	{
		/// <summary>
		/// Returns a negative random int.
		/// </summary>
		/// <returns></returns>
		public static int Negative(this INext<int> next)
		{
			if (next == null)
			{
				throw new ArgumentNullException("next");
			}
			return next.Between(int.MinValue, 1);
		}

		/// <summary>
		/// Returns a negative random long.
		/// </summary>
		/// <returns></returns>
		public static long Negative(this INext<long> next)
		{
			if (next == null)
			{
				throw new ArgumentNullException("next");
			}
			return next.Between(long.MinValue, 1);
		}

		/// <summary>
		/// Returns a negative random double.
		/// </summary>
		/// <returns></returns>
		public static double Negative(this INext<double> next)
		{
			if (next == null)
			{
				throw new ArgumentNullException("next");
			}
			return next.Between(double.MinValue, 1);
		}

		/// <summary>
		/// Returns a negative random float.
		/// </summary>
		/// <returns></returns>
		public static float Negative(this INext<float> next)
		{
			if (next == null)
			{
				throw new ArgumentNullException("next");
			}
			return next.Between(float.MinValue, 1);
		}

		/// <summary>
		/// Returns a negative random decimal.
		/// </summary>
		/// <returns></returns>
		public static decimal Negative(this INext<decimal> next)
		{
			if (next == null)
			{
				throw new ArgumentNullException("next");
			}
			return next.Between(decimal.MinValue, 1);
		}
	}
}
